package com.antwork.service.impl;

import com.antwork.common.dao.DynamicSqlParameter;
import com.antwork.common.entity.Pagination;
import com.antwork.dao.UserInfoDao;
import com.antwork.entity.UserInfo;
import com.antwork.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserInfoDao userInfoDao;

	public Pagination<UserInfo> getUserList(DynamicSqlParameter param) {
		param.setPaginationSqlId("getUserList");
		param.setPaginationCountSqlId("getUserCount");
		return this.userInfoDao.selectPagination(param);
	}

	public void insertUserInfo(UserInfo userInfo) {
		this.userInfoDao.insert(userInfo);
	}
}